﻿#pragma warning(disable: 4996)
#pragma warning(disable: 6031)

#include <stdio.h>

void solve(int m, int d, int y) {
	printf("%04d-%02d-%02d", y, m, d);
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-12.txt", "r", stdin);
	int m, d, y;
	scanf("%d-%d-%d", &m,&d,&y);
	solve(m,d,y);
	return 0;
}